package apidoc

import (
	"autoTestNew/pkg/config"
	autotest "autoTestNew/pkg/dashboard/autoTest"
	apidoc "autoTestNew/pkg/mongo/autoTestNew/apiDoc"
	"autoTestNew/pkg/mongo/autoTestNew/testCase"
	"autoTestNew/pkg/mongo/autoTestNew/testMicroservice"

	"github.com/go-logr/logr"

	"autoTestNew/pkg/mongo/autoTestNew/record"
	"autoTestNew/pkg/mongo/autoTestNew/task"
)

func Bootstrap(
	autoTest *autotest.AutoTest,
	apiDocStore *apidoc.Store,
	recordStore *record.Store,
	taskStore *task.Store,
	testCaseStore *testCase.Store,
	microserviceStore *testMicroservice.Store,
	config *config.ChaosDashboardConfig,
	log logr.Logger,
) *Service {
	return NewService(
		autoTest,
		apiDocStore,
		recordStore,
		taskStore,
		testCaseStore,
		microserviceStore,
		config,
		log.WithName("autotest"),
	)
}
